<?php


namespace app\common\model;


class Order extends \think\Model
{

    public function buyuser(){
        return $this->belongsTo('user','buy_user_id','id')
            ->field('id,nickname,avatar,mobile,alipay_image,wechat_image,mobile,bank_num,bank_name');
    }
    public function selluser(){
        return $this->belongsTo('user','sell_user_id','id')
            ->field('id,nickname,avatar,mobile,alipay_image,wechat_image,mobile,bank_num,bank_name');
    }
}